package club.monkeywood.request.buyer;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SelectedProductionRequest {

    @NotNull(message = "商品不能为空")
    private Integer id;

    @NotNull(message = "数量必填")
    @Min(value=1, message = "数量必须大于0")
    private Integer count;
}
